﻿@using Orchard.ContentManagement;
@{
    ContentItem contentItem = Model.ContentItem;
}
<div class="summary" itemscope="itemscope" itemid="@contentItem.Id" itemtype="http://orchardproject.net/data/ContentItem">
    <div class="properties">
        @*<input type="checkbox" value="@contentItem.Id" name="itemIds"/>*@
        <h3>@Html.ItemDisplayText(contentItem)</h3> - <div class="contentType">@contentItem.TypeDefinition.DisplayName</div>
        @if (Model.Header != null) {
            <div class="header">@Display(Model.Header)</div>
        }
        @if (Model.Meta != null) {
            <div class="metadata">@Display(Model.Meta)</div>
        }
    </div>
    <div class="related" data-display-text="@Html.ItemDisplayText(contentItem)" data-id="@contentItem.Id" data-edit-link="@Html.Encode(Html.ItemEditLink(contentItem))" data-display-link="@Html.Encode(Html.ItemDisplayLink(contentItem))" >
        @Html.Link(T("Select").Text, "#", new { @class = "button select"})
    </div>
    @if (Model.Content != null) {
        <div class="primary">@Display(Model.Content)</div>
    }
</div>
